home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-k-archive.past
/
tex-k-archive.gz
/
tex-k-archive
/
000682_kb@cs.umb.edu_Fri Jun 24 03:05:17 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-10-11
|
7KB
Received: from terminus.cs.umb.edu by cs.umb.edu with SMTP id AA20007
(5.65c/IDA-1.4.4 for <tex-k-exp@cs.umb.edu>); Fri, 24 Jun 1994 07:05:18 -0400
Received: by terminus.cs.umb.edu id AA11228
(5.65c/IDA-1.4.4 for tex-k); Fri, 24 Jun 1994 07:05:17 -0400
Date: Fri, 24 Jun 1994 07:05:17 -0400
From: "K. Berry" <kb@cs.umb.edu>
Message-Id: <199406241105.AA11228@terminus.cs.umb.edu>
To: tex-k@cs.umb.edu
Subject: sh config files
I've been experimenting with config files that are sh scripts, and so
far I haven't really seen the win. Is there a particular feature or
application to making the config file be a script? Because the necessary
echo's just seem to clutter things up.
Here is my sample texmf.cnf in the homegrown syntax, followed by the sh
version.
% original texmf.cnf -- runtime path configuration file for kpathsea.
%
% (If you change or delete `original' on the previous line, the
% distribution won't install its version over yours.)
%
% Any variable name can be assigned.
% The `=' (and surrounding spaces) is optional.
% No space, %, or @ in variable values, for the sake of autogeneration.
% Setting an environment variable foo will override a definition of foo here.
% $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
%
% All definitions are read before anything is expanded, so you can use
% variables before they are used.
%
% If a variable is qualified with `.<program>', it is ignored unless the
% current executable is named <program>.
%
% Which file formats use these paths for actual searches is described in
% the various programs' and the kpathsea documentation.
%
% // means to search subdirectories (recursively).
% A leading !! means to look only in the ls-R db, never on the disk.
% See the Kpathsea manual for full details.
%
% kpathsea/INSTALL describes how the various path-related files are
% created, and how to change the defaults.
% Where the wild files are.
TEXMFROOT = /usr/local/lib/texmf
% TeX input files -- i.e., anything to be found by \input or \openin,
% including .sty, .eps, etc. Things are confused by the many variants
% of LaTeX, which all have the same filenames. The current
% recommendation is to make `latex' be latex2e, and if you also want to
% support latex 2.09, call it latex209. If you do the reverse, the
% definitions below will need adjusting.
%
texinputdir = $TEXMFROOT/tex
generic_texinputs = $texinputdir//
TEXINPUTS = .:$generic_texinputs
TEXINPUTS.latex209 = .:$texinputdir/latex209//:$generic_texinputs
% Ditto for MF.
MFINPUTS = .:$TEXMFROOT/mf//:$TEXMFROOT/fonts//src//
% Predigested formats and string pools for initex/inimf.
TEXFORMATS = .:$TEXMFROOT/ini
MFBASES = .:$TEXMFROOT/ini
TEXPOOL = $TEXMFROOT/ini
MFPOOL = $TEXMFROOT/ini
% This definition isn't used from this .cnf file itself (that would be
% paradoxical), but the compile-time defaults are built from it.
TEXMF_CNF = .:/usr/local/lib/texmf
% The various font formats.
PKFONTS = .:$TEXMFROOT/fonts//pk/$MAKETEX_MODE
GFFONTS = .:$TEXMFROOT/fonts//gf/$MAKETEX_MODE
VFFONTS = .:$TEXMFROOT/fonts//vf
TFMFONTS = .:$TEXMFROOT/fonts//tfm
% Used to find texfonts.map; also as a backup for PKFONTS and GFFONTS,
% but that normally is irrelevant, so don't bother with all subdirectories.
GLYPHFONTS = .:$TEXMFROOT/fonts
% BibTeX bibliographies and style files.
BIBINPUTS = .:$TEXMFROOT/bibtex/bib
BSTINPUTS = .:$TEXMFROOT/bibtex/bst
% Dvips' config.* files.
TEXCONFIG = .:~:$TEXMFROOT/dvips
% Dvips' PostScript prologues and .pf[ab] files.
DVIPSHEADERS = .:$TEXMFROOT/dvips:$TEXMFROOT/fonts//type1
#!/bin/sh
# original texmf.cnf -- runtime path configuration file for kpathsea.
#
# (If you change or delete `original' on the previous line, the
# distribution won't install its version over yours.)
#
# Any variable name can be assigned.
# The `=' (and surrounding spaces) is optional.
# No space, #, or @ in variable values, for the sake of autogeneration.
# Setting an environment variable foo will override a definition of foo here.
# $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
#
# All definitions are read before anything is expanded, so you can use
# variables before they are used.
#
# If a variable is qualified with `.<program>', it is ignored unless the
# current executable is named <program>.
#
# Which file formats use these paths for actual searches is described in
# the various programs' and the kpathsea documentation.
#
# // means to search subdirectories (recursively).
# A leading !! means to look only in the ls-R db, never on the disk.
# See the Kpathsea manual for full details.
#
# kpathsea/INSTALL describes how the various path-related files are
# created, and how to change the defaults.
# Where the wild files are.
TEXMFROOT=/usr/local/lib/texmf
# TeX input files -- i.e., anything to be found by \input or \openin,
# including .sty, .eps, etc. Things are confused by the many variants
# of LaTeX, which all have the same filenames. The current
# recommendation is to make `latex' be latex2e, and if you also want to
# support latex 2.09, call it latex209. If you do the reverse, the
# definitions below will need adjusting.
#
texinputdir='$TEXMFROOT/tex'
generic_texinputs=$texinputdir//
test $program = latex209 && TEXINPUTS=$TEXINPUTS:$texinputdir/latex209//
TEXINPUTS=$TEXINPUTS:$generic_texinputs
echo "TEXINPUTS=$TEXINPUTS"
# Ditto for MF.
echo 'MFINPUTS=.:$TEXMFROOT/mf//:$TEXMFROOT/fonts//src//'
# Predigested formats and string pools for initex/inimf.
echo 'TEXFORMATS=.:$TEXMFROOT/ini'
echo 'MFBASES=.:$TEXMFROOT/ini'
echo 'TEXPOOL=$TEXMFROOT/ini'
echo 'MFPOOL=$TEXMFROOT/ini'
# This definition isn't used from this .cnf file itself (that would be
# paradoxical), but the compile-time defaults are built from it.
echo 'TEXMF_CNF=.:/usr/local/lib/texmf'
# The various font formats.
echo 'PKFONTS=.:$TEXMFROOT/fonts//pk/$MAKETEX_MODE'
echo 'GFFONTS=.:$TEXMFROOT/fonts//gf/$MAKETEX_MODE'
echo 'VFFONTS=.:$TEXMFROOT/fonts//vf'
echo 'TFMFONTS=.:$TEXMFROOT/fonts//tfm'
# Used to find texfonts.map; also as a backup for PKFONTS and GFFONTS,
# but that normally is irrelevant, so don't bother with all subdirectories.
echo 'GLYPHFONTS=.:$TEXMFROOT/fonts'
# BibTeX bibliographies and style files.
echo 'BIBINPUTS=.:$TEXMFROOT/bibtex/bib'
echo 'BSTINPUTS=.:$TEXMFROOT/bibtex/bst'
# Dvips' config.* files.
echo 'TEXCONFIG=.:~:$TEXMFROOT/dvips'
# Dvips' PostScript prologues and .pf[ab] files.
echo 'DVIPSHEADERS=.:$TEXMFROOT/dvips:$TEXMFROOT/fonts//type1'